﻿using SqlSugar;

namespace ApiLib.Common.Attributes;

public class ColumnAttribute : SugarColumn
{
    /// <summary>
    /// 忽略Excel
    /// </summary>
    public bool IsIgnoreExcel { get; set; } = false;

    /// <summary>
    /// Excel文件
    /// </summary>
    public bool IsExcelImage { get; set; } = false;

    public ColumnAttribute()
    {
        IsNullable = true;
    }

    public ColumnAttribute(string name)
    {
        IsNullable = true;
        ColumnDescription = name;
    }
}